<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Init Model
 *
 */
class Admin_cms_model extends CI_Model {
    /**
     * User data, stored for embeded methods
     *
     * @access 	private
     * @var 	array
     */

    /**
     * Constructor
     *
     * @uses 	get_settings
     * @return 	void
     */
    function __construct() {
        parent::__construct();
        log_message('debug', 'Init Model Initialized');
    }
    
    function get_cms() {
    	if (!$this->db->table_exists('cms')) {
    		return FALSE;
    	}
    	$sql = "select * from cms where status=51 order by id";
    	$query = $this->db->query($sql);
    	$result = $query->result();
    	return $result;
    }
    
    
}